home *** CD-ROM | disk | FTP | other *** search
/ Basic Press Kit / Basic Press Kit.iso / pc / progthis.dxr / 00011.ls < prev    next >
Encoding:
Text File  |  2001-10-11  |  528 b   |  28 lines

  1. on buttonClick
  2.   repeat while the mouseDown
  3.     if rollover(the clickOn) then
  4.       if the visible of sprite 3 = 0 then
  5.         set the visible of sprite 3 to 1
  6.         updateStage()
  7.       end if
  8.       next repeat
  9.     end if
  10.     if the visible of sprite 3 = 1 then
  11.       set the visible of sprite 3 to 0
  12.       updateStage()
  13.     end if
  14.   end repeat
  15.   if rollover(the clickOn) then
  16.     return 1
  17.   else
  18.     return 0
  19.   end if
  20. end
  21.  
  22. on syncIt theTicks
  23.   startTimer()
  24.   repeat while the timer < theTicks
  25.     nothing()
  26.   end repeat
  27. end
  28.